<script setup>
import { useHamburgerStore } from "@/store/hamburger";

const hamburgerStore = useHamburgerStore();
</script>

<template>
  <div class="filter">
    <div class="filter-info">
      <input
        v-model="hamburgerStore.keyword"
        type="text"
        class="filter-input"
        placeholder="请输入商品关键字"
      />
      <i class="ri-search-line"></i>
    </div>
  </div>
</template>

<style scoped>
.filter {
  padding: 25rem 40rem;
  border-bottom: 1px solid #e6e6e6;
}
.filter-info {
  height: 80rem;
  display: flex;
  align-items: center;
  position: relative;
}
.filter-input {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 40rem;
  background-color: rgb(242, 242, 242);
  outline: none;
  padding-left: 80rem;
  font-size: 30rem;
}
.filter-info i {
  position: absolute;
  color: rgb(184, 184, 184);
  font-size: 30rem;
  left: 30rem;
}
</style>
